<!-- 合同信息 -->
<template>
  <div class="">
    <!-- <el-form :model="assetInfo" label-width="100px" label-position="right">
      <el-row v-for="(row,index) in assetInfo.rows" :key="index" :gutter="50">
        <el-col v-for="item in assetInfo.fixedTitle" :key="item.field" :span="6">
          <el-form-item v-if="item.roomType===roomType" style="margin:10px" :label="item.title">
            <el-input disabled disabled :value="row[item.field]" size="small"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>-->

    <el-form :model="contactData" label-width="100px" label-position="right">
      <el-row v-for="(row,index) in contactData.rows" :key="index" :gutter="50">
        <el-col :span="6">
          <el-form-item label="承租人">
            <el-input disabled class="show" v-model="row.Charter"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="合同号">
            <el-input disabled class="show" v-model="row.ContractNo"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="联系电话">
            <el-input disabled class="show" v-model="row.Phone"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="证件号">
            <el-input disabled class="show" v-model="row.IDNo"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="房屋性质">
            <el-input disabled class="show" v-model="row.CardType"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="房屋地址">
            <el-input disabled class="show" v-model="row.address"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="产权单位">
            <el-input disabled class="show" v-model="row.item_3d3ca6763962e9f769db67e95c7d2aff"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="合同面积">
            <el-input disabled class="show" v-model="row.AllChartArea"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="起止日期">
            <el-date-picker
              class="show"
              clearable
              v-model="row.ChartBeginDate"
              value-format="timestamp"
              start-placeholder="合同开始日期"
              range-separator="至"
              end-placeholder="合同结束日期"
              type="datetimerange"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="月租金">
            <el-input disabled class="show" v-model="row.hire"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="租凭标准">
            <el-input disabled class="show" v-model="row.RentalStandard"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="交租方式">
            <el-select class="show" v-model="row.status" placeholder="交租方式" clearable></el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="保证金">
            <el-input disabled class="show"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="合同总额">
            <el-input disabled class="show"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="未交租金">
            <el-input disabled class="show"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="本次交租">
            <el-input disabled class="show"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="发票号">
            <el-input disabled class="show" v-model="row.IDNo"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  props: {
    contactData: {
      type: Object,
      default: {}
    }
  },
  data() {
    //这里存放数据
    return {
      contactInfo: {}
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {
    contactData(val) {
      this.contactInfo = val;
    }
  },
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
.show {
  width: 100%;
}
</style>